package top.wshape1.shiziapi.project.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;

/**
 * @author Wshape1
 * @version 1.0
 * @description
 * @since 2024-12-25
 */

@Data
public class EditHistoryVo {


    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long docId;

    private Integer docType;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long editorId;

    private String editorName;

    /**
     * 0修改project信息，1新建doc，2删除doc，3重命名doc，4保存版本，5成员变更
     */
    private Integer editType;


//    private String editBefore;
//
//
//    private String editAfter;

    private String editChange;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;


}
